package com.rd.student.ruanjian.class3.gaochenxi.NumberFour;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;

public class NewNumberFour {
      public static void main(String[] args) {
            ArrayList list = new ArrayList();
            Random random = new Random();
            int[] arr = new int[10];
            for (int i = 0; i < 10; i++) {
                  arr[i] = random.nextInt(100) + 1;
            }

            for (int i = 0; i < arr.length; i++) {
                  if (arr[i] >= 10){
                        list.add(arr[i]);
                  }
            }

            System.out.println("==============");
            System.out.println("原集合：");
            System.out.println(Arrays.toString(arr));
            System.out.println("集合中大于等于10的数字：");
            System.out.println(list);
            System.out.println("==============");


      }
}
